#pragma warning(disable:4996)
#include<stdio.h>
int main()
{
	int count1, count2, count3, count4, sum;
	double aver;
	scanf("%d %d %d %d", &count1, &count2, &count3, &count4);
	sum = count1 + count2 + count3 + count4;
	aver = sum / 4.0;
	printf("%d %.1lf\n", sum, aver);
	return 0;
}